/* Copyright (c) [2024] [ylc]. Licensed under Apache-2.0 License. */

#ifndef __DEMO_H
#define __DEMO_H

#include "my_define.h"

#define EGS_ADDR	0xCA
#define EGS_REG_LEN 5



typedef struct{
	unsigned char tx_index;
	unsigned char rx_index;
	unsigned char reg[EGS_REG_LEN];
	unsigned char rx_buf[EGS_REG_LEN+2];
	unsigned char addr;
}sI2C_t;
extern sI2C_t siic;


void egs_init(void);
void egs_iic_it(void);